﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
namespace BUS
{
    public class ChiTietHoaDonBUS
    {
        public static ChiTietHoaDonDTO LayChiTietHoaDonTheoID(int id)
        {
            return DAO.ChiTietHoaDonDAO.LayChiTietHoaDonTheoID(id);
        }

        public static ChiTietHoaDonDTO LayChiTietHoaDonTheoMaHoaDon(int mahoadon)
        {
            return DAO.ChiTietHoaDonDAO.LayChiTietHoaDonTheoMaHoaDon(mahoadon);
        }

        public static bool ThemChiTietHoaDon(ChiTietHoaDonDTO chitiethoadon)
        {
            return DAO.ChiTietHoaDonDAO.ThemChiTietHoaDon(chitiethoadon);
        }

        public static bool XoaChiTietHoaDonTheoID(int id)
        {
            return DAO.ChiTietHoaDonDAO.XoaChiTietHoaDonTheoID(id);
        }

        public static bool XoaChiTietHoaDonTheoMaHoaDon(int mahoadon)
        {
            return DAO.ChiTietHoaDonDAO.XoaChiTietHoaDonTheoMaHoaDon(mahoadon);
        }
    }
}
